<?php
namespace Home\Controller;

class GoodsController extends BaseController {
    public function showlist(){
        $info = D('Goods')->where('goods_status=1')->select();
        $this->assign('info',$info);
        $this->display();
    }
    function detail(){
        if($_GET['goods_id']){
          $goods_id = $_GET['goods_id'];
        $info = D('Goods')->find($goods_id);
        $this->assign('info',$info);
        }
        dump($_POST);
//        $price = $_POST['goods_number']*$info['goods_price'];
//        $this->assign('price',$price);
        $this->display();
    }
    
}